package com.itheima.pinda.entity.user;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.itheima.pinda.entity.base.Entity;
import lombok.*;

import java.io.Serializable;
import java.util.Date;

/**
 * 司机驾驶证表
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "pd_truck_driver_license")
public class PdTruckDriverLicense extends Entity implements Serializable {

    /**
     * 用户id
     */
    @TableField(value = "user_id")
    private String userId;

    /**
     * 准驾车型
     */
    @TableField(value = "allowable_type")
    private String allowableType;

    /**
     * 初次领证日期
     */
    @TableField(value = "initial_certificate_date")
    private Date initialCertificateDate;

    /**
     * 有效期限
     */
    @TableField(value = "valid_period")
    private String validPeriod;

    /**
     * 驾驶证号
     */
    @TableField(value = "license_number")
    private String licenseNumber;

    /**
     * 驾龄
     */
    @TableField(value = "driver_age")
    private Integer driverAge;

    /**
     * 驾驶证类型
     */
    @TableField(value = "license_type")
    private String licenseType;

    /**
     * 从业资格证信息
     */
    @TableField(value = "qualification_certificate")
    private String qualificationCertificate;

    /**
     * 入场证信息
     */
    @TableField(value = "pass_certificate")
    private String passCertificate;

    /**
     * 图片
     */
    @TableField(value = "picture")
    private String picture;
}